package org.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.domain.entity.User;

@Mapper
public interface UserMapper extends BaseMapper<User> {

    User SelectUser(User user);

    User SelectByUserName(@Param("userName") String userName);

    User SelectByUserId(@Param("userId") Integer userId);

    boolean updateUser(User user);

    User SelectByEmail(String email);

    User SelectByNickName(String nickName);

    void save(User user);


    boolean changeUserStatus(User user);
}
